﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Facebook/Default.master" AutoEventWireup="true" CodeBehind="FromWhs.aspx.cs" Inherits="WhsFacebook.Net.Web.Facebook.FromWhs" %>
<asp:Content ID="Content1" ContentPlaceHolderID="dashboard" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="server">

<div runat="server" id="noWhsId" visible="false">
    <fb:error>
      <fb:message>Page called manually</fb:message>
      This page is intended to be called via the Windows Home Server on Facebook settings tag only.
    </fb:error>
</div>

<div runat="server" id="redirectToHome" visible="false">
    <fb:redirect url="." />
</div>

<div runat="server" id="assignForm" visible="false">
    <fb:explanation>
         <fb:message>Assign Facebook Account</fb:message>
         You are about to assign your Windows Home Server to your Facebook
         account. This step is required to grant this Facebook app access
         to your Windows Home Server.
    </fb:explanation>

    <fb:editor action="?whs=<%= _whsInstanceId %>&assign=1" labelwidth="100">
         <fb:editor-buttonset>
              <fb:editor-button value="Assign"/>
              <fb:editor-cancel href="." />
         </fb:editor-buttonset>
    </fb:editor>
</div>

</asp:Content>
